#!/bin/bash
docker stop `docker ps -a| grep typing:latest | awk '{print $1}'`
docker rm  $(docker ps -a | grep Exited | awk '{print $1}')
docker rm  $(docker ps -a | grep Created | awk '{print $1}')

mvn clean install package -Dmaven.test.skip

cd ruoyi-admin
mvn package docker:build -Dmaven.test.skip=true
docker rmi $(docker images | grep "none" | awk '{print $3}')